Logging Configuration Guide
This guide details the logging configuration options available in the Excel import system. Proper logging configuration is essential for debugging, monitoring, and maintaining the import process.
Overview
The logging system provides granular control over which components generate logs. Each component's logging can be enabled or disabled independently through the LOGGING_CONFIGS
section of the configuration.
Configuration Structure
All logging configurations are boolean settings ("true" or "false") that control logging for specific components:
{
"LOGGING_CONFIGS": {
"APPEND_OUTPUT_CONTROLLER_LOGGING": "true",
"PROCESSOR_RULE_LOGGING": "true",
// ... other logging configs
}
}
Available Logging Options
Input Processing Logs
EXCEL_READER_LOGGING
: Logs raw Excel file reading operationsEXCEL_INPUT_CONTROLLER_LOGGING
: Logs input validation and preprocessingEXCEL_TABLE_LOAD_LOGGING
: Logs table structure loading operationsEXCEL_MODULE_LOGGING
: Logs general Excel module operationsEXCEL_TABLE_CONFIGURATOR_LOGGING
: Logs table configuration processing
Layout Processing Logs
LAYOUT_TABLE_PARSER_LOGGING
: Logs table layout parsing operationsSHEET_DIMENSION_EXTRACTOR_LOGGING
: Logs sheet dimension detectionTABLETYPE_PARSER_LOGGING
: Logs table type determination
Feature Processing Logs
FEATURE_SEARCH_LOGGING
: Logs feature search operationsFEATURE_CONTROLLER_LOGGING
: Logs feature control operationsFEATURE_LABEL_CONTENT_LOGGING
: Logs feature label content processingFEATURE_SEARCH_CRITERIA_LOGGING
: Logs search criteria evaluation
Cluster Processing Logs
CLUSTER_CONTAINER_LOGGING
: Logs main cluster container operationsCLUSTER_CONTAINER_LOGGING_SEARCH_ORDER
: Logs cluster search order processingSUB_CLUSTER_CONTAINER_LOGGING
: Logs sub-cluster processing
Rule Processing Logs
PROCESSOR_RULE_LOGGING
: Logs rule processing operationsRULE_LOAD_CONTROLLER_LOGGING
: Logs rule loading operationsRULES_CONDITIONS_PROCESSOR_LOGGING
: Logs rule condition evaluationFINAL_ROW_FILTER_PROCESSOR_LOGGER
: Logs final row filtering operations
Log Output Configuration
The logging output is controlled by several general configuration settings:
{
"GENERAL_CONFIGS": {
"USE_LOGGER": "true",
"MINIMIZE_LOGGING": "true",
"VERBOSE_LOGS_SUFFIX": "verboseLogs.csv",
"USER_LOGS_SUFFIX": "userLogs.csv"
}
}
Output Files
verboseLogs.csv
: Contains detailed technical logsuserLogs.csv
: Contains high-level user-friendly logs
Best Practices
-
Development Environment
- Enable comprehensive logging during development
- Use
FEATURE_SEARCH_LOGGING
andFEATURE_CONTROLLER_LOGGING
for debugging feature issues - Enable
CLUSTER_CONTAINER_LOGGING
for understanding data grouping
-
Production Environment
- Minimize logging to essential components
- Enable
FINAL_ROW_FILTER_PROCESSOR_LOGGER
for tracking data filtering - Keep
EXCEL_READER_LOGGING
enabled for input validation
-
Debugging Specific Issues
- Enable relevant component logging based on the issue area
- Use
VERBOSE_LOGS_SUFFIX
for detailed investigation - Keep
MINIMIZE_LOGGING
set to "false" during debugging
Troubleshooting Common Issues
Missing Data Issues
Enable these logs:
{
"EXCEL_TABLE_LOAD_LOGGING": "true",
"FEATURE_SEARCH_LOGGING": "true",
"FEATURE_CONTROLLER_LOGGING": "true"
}
Layout Detection Problems
Enable these logs:
{
"LAYOUT_TABLE_PARSER_LOGGING": "true",
"SHEET_DIMENSION_EXTRACTOR_LOGGING": "true",
"TABLETYPE_PARSER_LOGGING": "true"
}
Rule Processing Issues
Enable these logs:
{
"PROCESSOR_RULE_LOGGING": "true",
"RULE_LOAD_CONTROLLER_LOGGING": "true",
"RULES_CONDITIONS_PROCESSOR_LOGGING": "true"
}
Performance Considerations
- Enabling all logs can impact performance
- Use selective logging in production
- Consider log rotation for long-running processes
- Monitor log file sizes when extensive logging is enabled
Log Analysis
Understanding Log Patterns
Each log entry typically contains:
- Timestamp
- Component identifier
- Operation type
- Relevant data values
Example log pattern:
[Timestamp] [Component] [Operation] : [Details]
Common Log Messages
Understanding common log messages helps in quick problem identification:
-
Feature Search Messages:
[Feature Search] Starting search for pattern: [pattern]
[Feature Search] Found match at position: [position] -
Cluster Processing Messages:
[Cluster] Processing container: [container_id]
[Cluster] Found items: [count] -
Rule Processing Messages:
[Rule Processor] Applying rule: [rule_id]
[Rule Processor] Rule result: [result]